package com.exam.api.modules.exampaper.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.exam.api.common.baseModule.domain.BaseDomain;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("tbl_exam_paper")
@Schema(description = "试卷主表")
public class TblExamPaper extends BaseDomain implements Serializable {

    /**
     * 试卷名称
     */
    @TableField("name")
    @Schema(description = "试卷名称")
    private String name;

    /**
     * 关联商品ID，用于绑定课程或销售商品
     */
    @TableField("product_id")
    @Schema(description = "关联商品ID，用于绑定课程或销售商品")
    private Long productId;

    /**
     * 状态：0-草稿，1-已发布
     */
    @TableField("status")
    @Schema(description = "状态：0-草稿，1-已发布")
    private Integer status;

    private LocalDateTime publishTime;

    @Serial
    private static final long serialVersionUID = 1L;
}